<template>
    <div class="home">
        <Sidebar class="sidebar" />
        <div class="right_area">
            <div class="header">
                <Header />
            </div>
            <div class="content">
                <router-view></router-view>
            </div>
            <div class="footer">
                川ICP备156456号-2 网站标识码：540113210012 自牧归荑个人版权所有 川公网安备 546634654
            </div>
        </div>
    </div>
</template>
<script setup>
import { ref, reactive, onMounted } from "vue"
import Header from './layout/Header.vue'
import Sidebar from './layout/Sidebar.vue'


</script>
<style scoped lang="scss">
.home {
    height: 100%;
    display: flex;

    .sidebar {
        height: 100%;
        flex-shrink: 0;
    }

    .right_area {
        height: 100%;
        flex-grow: 1;
        // background: green;

        .header {
            box-sizing: border-box;
            background: #ffffff;
        }

        .content {
            height: calc(100% - 180px);
            // padding: 20px;
            width: calc(100% - 20px);
            margin-left: 10px;
            margin-top: 10px;
            box-sizing: border-box;
            background: #ffffff;
            border-radius: 10px;
            padding: 10px;
            box-sizing: border-box;
            overflow-y: auto;
        }

        .footer {
            height: 50px;
            margin-top: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #ffffff;
            font-size: 18px;
        }
    }
}
</style>
